package org.pet.service;

import jakarta.validation.constraints.Pattern;
import org.pet.entity.User;
import org.pet.entity.UserVo;
import org.pet.entity.wxlogin.LoginRequest;
import org.pet.util.Result;

public interface UserService {
    //WX
    Result wxLogin(LoginRequest loginRequest);
    User getUserByOpenid(String openid);

    //PC
    User getUserByUsername(String name);
    UserVo getUserById(Integer id);
    Result add(User user);
    Result update(User user);
    Result updatePwd(Integer id,String oldPwd,String newPwd);
    Result login(String name,String password);
    Result delete(Integer id);
}
